﻿using MDT.LifeSewagePlatform.Conmmon;
using MDT.LifeSewagePlatform.Entity;
using MDT.LifeSewagePlatform.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*********************************************************
 * 命名空间 MDT.LifeSewagePlatform.Repository.AlarmRules
 * 接口名称 ReducedTotalRule
 * 开发人员：-nhy
 * 创建时间：2022/3/31 11:00:15
 * 描述说明：
 * 更改历史：
 * 
 * *******************************************************/
namespace MDT.LifeSewagePlatform.Repository.AlarmRules
{
    /// <summary>
    /// 检验本期
    /// </summary>
    internal class ReducedTotalRule : IBaseRule
    {
        #region Field

        #endregion

        #region Constructors and Property

        #endregion

        #region Public Methods and Operators

        #endregion
        public string CheckRules(DrugDetailEntity drugentity, DrugDetailEntity[] drugentitytarge)
        {
            //计算然后查询
            double percent = drugentity.ReducedTotal.GetPercent(drugentitytarge[0].ReducedTotal);
            return string.Empty;
        }

        public Task<string> CheckRulesAsync(DrugDetailEntity drugentity, DrugDetailEntity[] drugentitytarge)
        {
            double percent=drugentity.ReducedTotal.GetPercent(drugentitytarge[0].ReducedTotal);

            return Task.Run(()=>string.Empty);
        }
    }
}
